package com.ftg.learn.chapter8.store;

/**
 * 商品小样
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/7/25 上午8:35
 */
public class DemoProduct {

    public static void main(String[] args) {

        ProType pt1 = new ProType("饮料","可以喝的水");
        ProType pt2 = new ProType("食品","可能吃的");

        Product p1 = new Product();
        p1.setBar("0 1231232132");
        p1.setProName("白象方便面");
        p1.setBrand("白象");
        p1.setType(pt2);
        p1.setPrice(5.00);
        p1.setManufacturer("哈尔滨松北");

        Product p2 = new Product("白象矿泉水",1.23);
        p2.setType(pt1);

        Product p3 = new Product("0 12321","白象矿泉水",2.34,"白象",pt1,"哈尔滨松北");

    }

}
